<?php
namespace app\api\controller;
use app\model\VipIcon as VipIconModel;
use app\model\Token as TokenModel;
use think\Db;


class VipIcon extends Base
{   
    protected $noCheckToken = ['index'];
    
    /**
     * @Author   CCH
     * @DateTime 2020-05-23T12:10:10+0800
     * @return   数据列表
     */
    public function index(){
        $map_params = [
            
        ];
        $map = getSearchParam($map_params);

        $model = new VipIconModel();

        $list = $model->where($map)->order('id asc')->select();
        foreach ($list as $k => $vo) {
            
        }
        return apiResult('2000','获取成功',$list);
    }

    /**
     * 获取详情
     * @Author   cch
     * @DateTime 2020-05-26T17:22:45+0800
     * @return   [type]                   [description]
     */
    public function read($id){
        $model = new VipIconModel();
        $data = $model->where('id',$id)->find();
        return apiResult('2000','获取成功',$data);
    }

   


}
